import time
from selenium import webdriver
import unittest


class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome('/Users/wgz/Desktop/谷歌/chromedriver')
        # self.driver = webdriver.Firefox()
        # self.driver = webdriver.Ie()

        self.driver.implicitly_wait(20)
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(5)
        self.driver.quit()